import React from 'react'
import { NavLink, Route, Routes } from 'react-router-dom'
import AddGoods from './pages/AddGoods'
import GoodsList from './pages/GoodsList'
import CartList from './pages/CartList'
import './App.css'
function App() {
    return (
        <div className='container'>
            <nav>
                <NavLink to={'/'} >添加商品</NavLink>
                <NavLink to={'/goodsList'} >商品列表</NavLink>
                <NavLink to={'/cartList'} >我的购物车</NavLink>
            </nav>
            <Routes>
                <Route path='/' element={<AddGoods></AddGoods>} ></Route>
                <Route path='/goodsList' element={<GoodsList></GoodsList>} ></Route>
                <Route path='/cartList' element={<CartList></CartList>} ></Route>
            </Routes>
        </div>

    )
}
export default App